/**
 * 
 */
package cl.duocap.refaxion.servicios;

import java.sql.Connection;
import java.sql.SQLException;

import cl.duocap.refaxion.dao.AuditoriaDAO;
import cl.duocap.refaxion.dto.AuditorioDTO;
import cl.duocap.refaxion.util.Conexion;

/**
 * @author rentonx
 *
 */
public class AuditoriaService {

	/**
	 * 
	 */
	private AuditoriaDAO auditoriaDAO = new AuditoriaDAO();
	Connection c = null;
	
	public AuditoriaService() {
		try {
			try{
				c = Conexion.connect();

				auditoriaDAO = new AuditoriaDAO(); 
				auditoriaDAO.setConexion(c);

			}catch(SQLException sql){
				sql.printStackTrace();
			}finally{
				
			}	
		}catch(Exception ex){
			ex.printStackTrace();
		}
	}
	
	public boolean registrarAccion(AuditorioDTO accion){
		return auditoriaDAO.registrarAccion(accion);
	}

}
